<template>
  <div>
    <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="onClickLeft"  class="navcomponent"/>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  data() {
      return {
        //   title:'注册'
      }
  },
  props:['title'],
  methods: {
    onClickLeft() {
      // Toast("返回");
       this.$router.go(-1);
    }
  }
};
</script>
<style scoped>
.van-nav-bar  {
  background: #FC6A42;
 
}
/* .navcomponent div span {
   color: white;

} */
</style>